package com.atguigu.iterator;

import java.util.ArrayList;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description:
 * @create: 2022-03-07 13:02
 **/
public class Client {
    public static void main(String[] args) {
        ArrayList<College> collegeArrayList = new ArrayList<>();

        ComputerCollege computerCollege = new ComputerCollege();
        InfoCollege infoCollege = new InfoCollege();

        collegeArrayList.add(computerCollege);
        collegeArrayList.add(infoCollege);

        OutputImpl output = new OutputImpl(collegeArrayList);
        output.printCollege();
    }
}
